#include "mainwindow.h"

#include <QApplication>
#include <QFile>

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);

    QFile file(":/qss/lightblue.css");
    file.open(QFile::ReadOnly);
    QTextStream filestext(&file);
    QString stylesheet = filestext.readAll();
    QString paletteColor = stylesheet.mid(20, 7);
    qApp->setPalette(QPalette(paletteColor));
    qApp->setStyleSheet(stylesheet);
    file.close();

    MainWindow w;
    w.show();
    return a.exec();
}
